import request from '@/utils/request'

// 查询外出文件列表
export function listEgressFile(query) {
  return request({
    url: '/Egress/EgressFile/list',
    method: 'get',
    params: query
  })
}

// 查询外出文件详细
export function getEgressFile(fileId) {
  return request({
    url: '/Egress/EgressFile/' + fileId,
    method: 'get'
  })
}

// 新增外出文件
export function addEgressFile(data) {
  return request({
    url: '/Egress/EgressFile',
    method: 'post',
    data: data
  })
}

// 修改外出文件
export function updateEgressFile(data) {
  return request({
    url: '/Egress/EgressFile',
    method: 'put',
    data: data
  })
}

// 删除外出文件
export function delEgressFile(fileId) {
  return request({
    url: '/Egress/EgressFile/' + fileId,
    method: 'delete'
  })
}
